home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / UNIXTAIL.MAK < prev    next >
Encoding:
Text File  |  1992-08-24  |  4.8 KB  |  145 lines

  1. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Partial makefile for Ghostscript, common to all Unix configurations.
  21.  
  22. # This is the last part of the makefile for Unix configurations.
  23. # Since Unix make doesn't have an 'include' facility, we concatenate
  24. # the various parts of the makefile together by brute force (in tar_cat).
  25.  
  26. # The following prevents GNU make from constructing argument lists that
  27. # include all environment variables, which can easily be longer than
  28. # brain-damaged system V allows.
  29.  
  30. .NOEXPORT:
  31.  
  32. # -------------------------------- Library -------------------------------- #
  33.  
  34. ## The Unix platforms
  35.  
  36. # All reasonable Unix platforms.
  37. unix__=gp_unix.$(OBJ)
  38. unix_.dev: $(unix__)
  39.     $(SHP)gssetmod unix_ $(unix__)
  40.  
  41. gp_unix.$(OBJ): gp_unix.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  42.  $(stat__h) $(time__h)
  43.  
  44. # Brain-damaged System V platforms.
  45. sysv__=gp_unix.$(OBJ) gp_sysv.$(OBJ)
  46. sysv_.dev: $(sysv__)
  47.     $(SHP)gssetmod sysv_ $(sysv__)
  48.  
  49. gp_sysv.$(OBJ): gp_sysv.c
  50.  
  51. # -------------------------- Auxiliary programs --------------------------- #
  52.  
  53. ansi2knr$(XE): ansi2knr.c
  54.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  55.  
  56. echogs$(XE): echogs.c
  57.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  58.  
  59. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  60. # produces a buggy executable.
  61. genarch$(XE): genarch.c
  62.     $(CC) -o genarch$(XE) genarch.c
  63.  
  64. # ----------------------------- Main program ------------------------------ #
  65.  
  66. # Main program
  67.  
  68. ALLUNIX=gsmain.$(OBJ) $(LIB)
  69.  
  70. # Interpreter main program
  71.  
  72. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  73.  
  74. # The second call on echogs writes a \.  This is the only
  75. # way to do it that works with all flavors of shell!
  76. gs: $(GSUNIX) obj.tr lib.tr echogs
  77.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  78.     ./echogs -x 205c >>_temp_
  79.     cat obj.tr >>_temp_
  80.     cat lib.tr >>_temp_
  81.     echo $(EXTRALIBS) -lm >>_temp_
  82.     $(SH) <_temp_
  83.  
  84. # Installation
  85.  
  86. TAGS:
  87.     etags -t *.c *.h
  88.  
  89. docdir=$(gsdatadir)/doc
  90. exdir=$(gsdatadir)/examples
  91. sysdir=$(gsdatadir)/system
  92.  
  93. install: gs
  94.     -mkdir $(bindir)
  95.     $(INSTALL_PROGRAM) gs $(bindir)
  96.     $(INSTALL_PROGRAM) gsnd $(bindir)
  97.     $(INSTALL_PROGRAM) bdftops $(bindir)
  98.     $(INSTALL_PROGRAM) font2c $(bindir)
  99.     $(INSTALL_PROGRAM) pfbtogs $(bindir)
  100.     $(INSTALL_PROGRAM) showpbm $(bindir)
  101.     -mkdir $(gsdatadir)
  102.     $(INSTALL_DATA) README $(gsdatadir)
  103.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  104.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  105.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  106.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  107.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  108.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  109.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  110.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  111.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  112.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  113.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  114.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  115.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  116.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  117.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  118.     $(INSTALL_DATA) pfbtogs.ps $(gsdatadir)
  119.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  120.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  121.     $(INSTALL_DATA) showpbm.ps $(gsdatadir)
  122.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  123.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  124.     -mkdir $(docdir)
  125.     $(INSTALL_DATA) NEWS $(docdir)
  126.     $(INSTALL_DATA) history.doc $(docdir)
  127.     $(INSTALL_DATA) drivers.doc $(docdir)
  128.     $(INSTALL_DATA) fonts.doc $(docdir)
  129.     $(INSTALL_DATA) hershey.doc $(docdir)
  130.     $(INSTALL_DATA) humor.doc $(docdir)
  131.     $(INSTALL_DATA) language.doc $(docdir)
  132.     $(INSTALL_DATA) lib.doc $(docdir)
  133.     $(INSTALL_DATA) make.doc $(docdir)
  134.     $(INSTALL_DATA) psfiles.doc $(docdir)
  135.     $(INSTALL_DATA) readme.doc $(docdir)
  136.     $(INSTALL_DATA) use.doc $(docdir)
  137.     -mkdir $(exdir)
  138.     $(INSTALL_DATA) chess.ps $(exdir)
  139.     $(INSTALL_DATA) cheq.ps $(exdir)
  140.     $(INSTALL_DATA) colorcir.ps $(exdir)
  141.     $(INSTALL_DATA) golfer.ps $(exdir)
  142.     $(INSTALL_DATA) escher.ps $(exdir)
  143.     $(INSTALL_DATA) snowflak.ps $(exdir)
  144.     $(INSTALL_DATA) tiger.ps $(exdir)
  145.